home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / lib / udev / rules.d / 60-persistent-storage-tape.rules < prev    next >
Encoding:
Text File  |  2010-12-12  |  1.5 KB  |  42 lines

  1. # This file contains the rules needed to create persistent device names.
  2.  
  3. # we are only interested in add and change actions for block devices
  4. ACTION=="remove",            GOTO="persistent_storage_tape_end"
  5.  
  6. # "Medium Changers"
  7. SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="8", \
  8.     IMPORT{program}="scsi_id --export --sg-version=3 --whitelisted --device=$tempnode"
  9.  
  10. KERNEL=="sg[0-9]*", ATTRS{type}=="8",    ENV{ID_SERIAL}=="?*", \
  11.     SYMLINK+="tape/by-id/scsi-$env{ID_SERIAL}"
  12.  
  13. SUBSYSTEM!="scsi_tape",            GOTO="persistent_storage_tape_end"
  14.  
  15. KERNEL=="st*[0-9]|nst*[0-9]",        ATTRS{ieee1394_id}=="?*", \
  16.     ENV{ID_BUS}="ieee1394", ENV{ID_SERIAL}="$attr{ieee1394_id}"
  17. KERNEL=="st*[0-9]|nst*[0-9]",        ENV{ID_SERIAL}!="?*", \
  18.     SUBSYSTEMS=="usb", \
  19.     IMPORT{program}="usb_id --export $devpath"
  20.  
  21. KERNEL=="st*[0-9]|nst*[0-9]",        ENV{ID_SERIAL}!="?*", \
  22.     SUBSYSTEMS=="scsi", KERNELS=="[0-9]*:*[0-9]", \
  23.     ENV{.BSG_DEV}="$root/bsg/$id"
  24. KERNEL=="st*[0-9]|nst*[0-9]",        ENV{ID_SERIAL}!="?*", \
  25.     WAIT_FOR="$env{.BSG_DEV}", \
  26.     ENV{ID_BUS}="scsi", \
  27.     IMPORT{program}="scsi_id --export --device=$env{.BSG_DEV}"
  28.  
  29. KERNEL=="st*[0-9]|nst*[0-9]",        ENV{ID_SERIAL}=="?*", \
  30.     SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
  31.  
  32. KERNEL=="st*[0-9]|nst*[0-9]", \
  33.     IMPORT{program}="path_id $devpath"
  34. KERNEL=="st*[0-9]",            ENV{ID_PATH}=="?*", \
  35.     SYMLINK+="tape/by-path/$env{ID_PATH}"
  36. KERNEL=="nst*[0-9]",            ENV{ID_PATH}=="?*", \
  37.     SYMLINK+="tape/by-path/$env{ID_PATH}-nst"
  38.  
  39. # end of processing
  40. LABEL="persistent_storage_tape_end"
  41.  
  42.